fix endian macro names.
handle endianness conversion in iter unsafe getters.