Optimize popFromStack
Make LuaRef default return type