Improve use of QHash in CommitGraph
Unify the use of a persistentUnitType constant