BUG: check alignment of strides for byteswap

closes gh-4774