[Polygon] Rewrite insert_vertex_sequence, related ticket #8685.