configure: turn on LUA_USE_APICHECK to catch Lua stack overflows
add a Lua stack check in LuaRef::Save
fix stack leak in LuaRef::Save
grow Lua stack as necessary in (recursive) LuaSerializer::pickle
Merge remote-tracking branch 'jpab/issue-2977'