Fix using same param name in array of paths

fixes #2389