Defines a local variable in the current scope with lua object value.
value
LuaObject defLocal(LuaObject value) { return scope.defVar(value.id, value); }