Allow arbitrary strides and zero- and one-sized dimensions
Merge pull request #212 from markflorisson88/master

Relax stride check for zero- and one-sized dimensions