Implement bitwise writer.
Checkpoint progress on bitwise writer integration
Minor tweaks to tests.
New writer passes all tests.