move check of encoded  in C ext up to rb_float_to_bson