Rename the definitions of the character runtime functions Adjustl and
Adjustr (used to be AdjustL and AdjustR respectively, which didn't match
the declarations).
Also add unit tests (and move some of the helpers to the top of the
file, since they're now used in more than one place).