StringRef: add atoiHex(), fixing bugs, add tests