lib: Fix conversion to canonic automaton
In some cases, the states could be spuriously merged when converting to canonic automaton. This is now fixed.
In some cases, the states could be spuriously merged when converting to canonic automaton. This is now fixed.