GROOVY-6616: @CompileStatic Reference to constructor is ambiguous

added non regression tests