Add support for editing interior polygon rings

This also gets rid of the segmentData.geometry property, which
is no longer needed after the refactoring for the former
vector-api branch.