Fix bug in the Duplicator.

Previously after duplication of an entire program CallCmd.Proc would
point to procedures in the old program.