Improve numbers

Added support for BigDecimals and Rationals in the Ruby part.