GROOVY-6961: fix wrong generics type extraction for extension methods by using the custom declared class instead of backing node
Merge pull request #489 from yukoba/MinorFix

Minor fixes
GROOVY-6966: Type cast methods for Collection classes.