Forgot small fixes in LuaLib and Lua
Merge branch 'lua_integration' into testing