Extract prevNonWS into a method.
Added some Loc helper methods.

These have to avoid conflicting with any Loc class methods *by name* (not by
signature which one might expect) in order to receive static forwarder methods
(which is the whole point). Sigh.