Probably got multiple Lua crash bugs...
The serialization is not quite on par with the static code, deserialization is quite a bit faster.