FIX Serialization of trigram head automata.