GROOVY-6823: Ensure direct getter access for outer class