Relax stride check for zero- and one-sized dimensions