Fixed problems with new strides in old dataset class (may want to port
over to use for non-contiguous datasets too)