Fix endianness bugs in ResTable::print