fix #18798: stems/rests not reset on undo exchange voices