Modify handling of large fixnum

First patch will fix #814.
Second patch will fix buffer overrun in `Fixnum#to_s`.