Limit shared vertex editing

To avoid surprises, we enable shared vertex editing only on
segments that have the same vertex coordinates.