Allow 0-dimensional arrays for tensor meshgrids