Better error report on cyclic upgrade
Actions processing: finer handling of deps among versions

Fixes  #1778
Fixed exit code on upgrade resolution error
Merge pull request #1781 from OCamlPro/version-dep-cycles

Actions processing: finer handling of deps among versions