GROOVY-6196: fix property name resolving