Rearrange tests; improve RandomBigInteger to also generate from hex strings; fix a potential bug in fromRadixSubstring