Preserve the original state of ARGV by duplicating the array. Closes #787
Merge pull request #788 from csmuc/dup_command_line_args

Preserve the original state of ARGV by duplicating the array. Closes #787