GROOVY-6126: CompileStatic: dispatch doesn't choose correct method when parameterized generic types are used

added non regression test