GROOVY-6904: change type checker to know an inner class may now use the closure instance to init the inner class