fix NAN and Infinity handling for C extension
NaN and Inifity in Bignum and Fixnum as well