BUG: check alignment of strides for byteswap

closes gh-4774
Merge pull request #4777 from juliantaylor/byteswap-align

BUG: check alignment of strides for byteswap