Fix usage of dup in ProcedureMethods#get_procedure_arguments