[algorithms][num_points] remove check for starting-ending point in range_count
[test][algorithms][num_points] add test cases for open geometries (including
the edge case where the geometry is defined as open but the first/last points
are identical)