Don't depend on Bignum representation

From Ruby 2.2.0, RBignum is hidden.
https://bugs.ruby-lang.org/issues/6083