Fix issue with ropes in writer

We were constantly appending to the current line string. We then did
s.charCodeAt(s.length - 1) which, when the string is a rope is O(n)
where n is the number of internal strings. We did this on every
append. The code is now refactored to keep track of the last char
code so we never have to go through the rope.

This also removes the feature to highlight a node and print line
number comments.

Also, removed some branches in hot code.

Fixes #1596
I think it's worth commenting (here or in the initial creation of `this.lastCode_`) that measurements show that computing and storing the last `charCodeAt()` wins even though it would appear that `writeRaw_()` is called more often than `writeSpace_()`.