Fix inconsistencies in operation nesting

Operating on line widgets from within an operation would cause
crashes.
Be more careful about redrawing widgets, fire a 'redraw' event on them

Issue #1164