BF: work round nasty numpy bytewap bug

Change in _write_data exposed nasty byteswap casting error in numpy;
work round this, but test we're in expected case.