Fix issue 11600: to!BigInt(string) should validate input.
Merge pull request #1731 from quickfur/issue11600

Fix issue 11600: to!BigInt(string) should validate input.