In Dumper.xs, use sv_newmortal() instead of sv_mortalcopy(&PL_sv_undef).