cleanupDuplicateArgs: avoid mangling parser function calls