Fix the mutability of @_ in perl -d.

With a test.

See Father C.'s comment on RT #118169.