Accept instances of IP in overlaps()