Clicking format buttons loses selection in non-IE

At some point along the way (before 1.0.0b6), we broke selection restoration after changing the node type via selection. If you change a paragraph into a header, your selection goes poof and you have to click back in to the header. We shouldn't make people do that.
Just for a sanity check, this isn't the fastest helper. Is there anywhere that we call a bunch of `switchTo` in a row that might be affected negatively?

Also, I don't remember if that `restoreSelectionAfterManipulation` works when it's called in a nested manner. Are you sure this doesn't break anything list like indent/outdent that might rely on this?