Tweak the way stack frames are serialized