fix typo in exception class name
fix gmp dechex/hexdec

Explicitly specifying base-10 so leading zeroes don't imply octal.