minor - hopefully correct - adjustments to stack index validation in unpersist after skimming through the Lua test cases