Handle BigInteger ranges correctly