WIP for fixing bigint writing in certain ranges.
Finished bigint bug fix and added tests.
Merge pull request #170 from pekim/bigint

BigInt Bug