[geometry] Fixed results for distance of integer point types point-segment
or point-linestring