Support strided input ndarrays

Except for reshaped ones.