Just a few simple optimisations to make the gamestate less thick when you have some Lua-heavy mod added.
This also fixes a bug where strings longer than 65535 characters (don't ask) could not be archived.