Fix AssertionError from test-unions-with-null during FTS

The AssertionError was thrown in FTS because it had to use the ParameterFinder to get parameters instead of getting them from the parser, and the ParameterFinder sometimes included duplicates. This makes the ParameterFinder stricter.