call Path::deconstruct() when deleting a path. Undo will restore it then.
EdgePath: undo-aware anchors
EdgePath: undo-aware setting of positions