Check the stack size when trying to call a Lua{Object, Table} method

(Closes #3000)
Add a bunch of LUA_DEBUG_START guards
Avoid some Lua stack leaks in the UI code.

(Closes #3000)
(Closes #3001)
(Closes #2999)
(Closes #2997)
(Closes #2996)
add readout of Lua stack size to debug info overlay
Merge remote-tracking branch 'laarmen/checkstack_callmethod'
Merge remote-tracking branch 'laarmen/leaky_ui'