mips: fix reading uint32 and uint16 when running on big endian host