Copy to parameters to `$p`, instead of aliasing to it

Instead of using a possibly brittle check, just copy the parameter
instead of aliasing it, so we should have no problem clobbering.