WIP - adding loop begin/end to undo types