Use numpy's function to check array is contiguous

In particular, strides for dimensions of length 1 could be anything