Use numpy's function to check array is contiguous

In particular, strides for dimensions of length 1 could be anything
Merge pull request #2352 from lamblin/fix_conv2d_stride_check

Use numpy's function to check array is contiguous