Improve ParseHex speed dramatically by using a pre-compiled RegExp. Adding more tests for ParseHex.