groovy-ant part of PR#456
GROOVY-6970: Type checker should be able to choose between two equivalent interface methods
GROOVY-6849: In case of ambiguity, type checker should be able to choose between an extension method and an interface method