Lua serializer and pretty printer