Fix BigInteger longValue, add some more tests, etc.