Use ScopedLuaRef.