iter: initialize docbuf to NULL.
iter: initialize defaults to 0.

These aren't strictly necessary, as they can only fail with invalid API
usage, but might as well set them.
cbson: check return values.
bson: make bson_bool_t unsigned for use in 1 bit fields.