compatibility with java.math.BigInteger

https://github.com/silentmatt/javascript-biginteger/issues/12