Priorities on channels break when non-channels are declared before channels.
Variable table index was used as channel identifiers, so it appears to work when nothing is declared before channels.
From revision 1696 the variable is looked up in the table, and evaluated for channel number.
Created attachment 94 [details]
A model where priorities breaks (after two transitions in simulator)