[Truffle] Be tighter with the bounds when comparing double to integer types to account for loss of precision.
[Truffle] At this point we've already determined we can't cast to long without losing precision, so use BigDecimal to preserve data.
[Truffle] Implemented Float#to_i.