fix a bug in array mode to_bson.

Signed-off-by: root <root@test.mobilechat.im>