Undo now undoes whole brushstrokes, not segments, and does not segfault when the last node on the undo stack is undone.
Fixed a logic issue in toolbar.m where the brush would be resized although no selection was made
Brush size is now preserved during reverts and undo operations.