bson: make sure *length is always initialized.