GROOVY-6755 Bad type resolution causing bad classes and TypeNotPresentEx...

...ceptions with joint compilation, deep generics and star imports

Pull request for https://jira.codehaus.org/browse/GROOVY-6755