Add Hex.to_integer, update doctests
Add tests for Hex.to_integer