C ext factor out int64_t_to_bson from rb_integer_to_bson_int64