support for Groovy 2.2's DelegatesTo#genericIndexType
(cherry picked from commit d0f62f4)
[rev=Peter] IDEA-107649 Infinite recursion while processing members of cyclic inherited classes
(cherry picked from commit 31eec1b)