Unicode fixes and array helpers
- Start a lib.array API for low level array/bit operations.
- Tidy up code a bit to please linters.
- lib.wc.substr now includes leading combining characters.
- lib.wc.substr fix handling of surrogate pairs.
- Use arrow functions instead of "self" references.