GROOVY-6810: fix usage of "this" in nested AIC