Add support for octal and hexadecimal output in dumps.