Optimise net-archiving of Lua strings, numbers and booleans
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.
Edited by LJ Sonic