Check the size of the Lua stack when unpickling.

On my box, I actually hit the jackpot when trying to load the #2986
game.
Merge remote-tracking branch 'laarmen/checkstack_unpickle'