Fix handling of BSON Numbers.