Port TypeID arrays to use constexpr static arrays so that they're initialized in the static data segment and reduce resulting JavaScript code size.