add typeid field to LuaGlueClass instances.