Add sw::UndoManager::dumpAsXml()

So that it's easy to see where the implementation for a given undo
action is.

Change-Id: I652826d2933451b84a05eecc3982c8cbf2db3764