fix and initial tests for bigint
Merge pull request #555 from ilvalle/bigint

Fix and initial tests for bigint