Incorporating structure of data collection in analysis: Analysis of tensor-variate and massive spatial data