All: Use using() blocks to close UndoContexts

Prevents exceptions from breaking editor Undo.
Analysis: Remove unused DTE fields