added template class to facilitate safe binding for MOAILuaObject subclasses created on the stack or as members of other objects and then exposed to Lua