Adds tests to make sure that the break types are encoded correctly.

- Also fixes some bugs exposed by those tests
Add documntation for SB-UNICODE.

Now no one can complain about me not writing any.

Also removes some trailing whitespace in tests.