GROOVY-6755 Bad type resolution causing bad classes and TypeNotPresentExceptions with joint compilation, deep generics and star imports