GROOVY-6001: fix distance calculation bug involving interfaces