A few nits.
Simplify bitstream serialization.
Make VAST strings NUL-terminated.