Add out_canonical() to hextools