bugfix for SpatialConvolutionMM and non-contiguous cases