should give the right size for key in bson_append_xxx()