Support for writing hex/octal in write_term (forgot to commit earlier).
Authored by: tswift 2018-06-29
Parent: [r9394]
Child: [r9396]