Refactor u16/u32 and their uses.
Support new-style imports (0x24 in size).