Fixes exception when duplicate parameter names are given in path

This PR fixes the use of the `AmbiguousVariableException` that occurs when the same parameter name is used in a path. If the exception is thrown a list of duplicates is given as well. This is related to issue #29.

* fixes use of exception and provide error message containing duplicates
* added test