Allow to call Lua functions from refs more easily.