added a Contour._shape pop check in classes.Contour.overlaps()