pack global constant allocations to save space, and allow typed array .set() for writing them out