The whole point of this is to use int instead of bytes to get faster writing. But the
bus error shows that we can get unaligned writes, which aren't fatal on other
processors, but hurt performance. I will look into rewriting this in a way which
should lead to better performance on most processors and fixes the bus error
on those where unalign access is forbidden. Thanks for bringing this up.