GROOVY-6276, part 2: Fix outer class property not visible if using getter