Serialization code needs u32 to ensure compatiblity. In platforms with short enums this goes very wrong. Fixes issues on 3DS platform.
Remove small unused stuff while at it.