Binary object serialization. Inspired by Procotol Buffers.