fix workflow consistency: check state/transition name uniqness in the wf when state/transition name is modified ; use the new msg argument of rql constraints to have a nicer error message on failure
fix RQLUniqueConstraint behaviour by using a DISTINCT query and allowing
to specify variables that should be used in selection. See usage on
state_of / transition_of relations.