GROOVY-6820: Fix type checker not allowing the Outer.this notation