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.
While I was here, I had to assign `this` a name. It is better to concentrate all of this in #569 but...