Implement Lua.TryGetField to get global var in Lua scripts.