Return 0 for chars at/after the end of the line.

We often want to treat charAt(length) as a real character with non-word
properties.
Better forward/backward impls. Also Loc.<.
Added basic syntax tables, forward/backward word.