in reply to Reverting the internals of an IV to their original states

calling foo($sv) can make significant alterations to the internals of $sv

More precisely, it's stringifying $sv that did this. "$sv" would have the save effect.