Created alternate implementation of lua_var.h using GC_REGISTER_FINALIZER