Micro-optimize MCObjectWriter to do a byteswap if necessary and then write the