GROOVY-6724: Wrong receiver type when checking generics on property access