[distance] fix boolean template values for collect points for ring geometries;