improve compatibility with Int.SetString in math/big
some tests from math/big