GROOVY-5989: resolve inner classes/interfaces
GROOVY-5989: Improve performance of resolution. Now compile time is the same (if not faster) than before the fix.