Long arithmetic for BSON parser & generator