fixed endian issues so the numbers go into APInt instances as intended.  This means they then come out as intended.