Merge pull request #1003 from mdboom/misc/byteswap-bugs

This fixed PyFITS ticket #216.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2252 ed100bfc-0583-0410-97f2-c26b58777a21