Implemented selection-toggle support for closed polylines