Fix slightly dangerous method for transferring haltparams in reexec.