Binary support

I was writing some custom types to allow me to compress and decompress fields before saving and after loading data to mongo. Using zlib I needed to be able to save binary data so I needed these changes.