Lua: re-use the viewport pointer; also use the shorter lua_getfield() & lua_setfield...