export Mat3 save/load to Lua, add real automatic C type serialization in Lua