Add support for hexadecimal integer literals
Clean up literal parsing code
Merge branch 'pr/833'