Fail much earlier in case the actions to process are cyclic

which can be caused by bad depopts
Merge pull request #1375 from OCamlPro/better-fail-on-bad-depopts

Fail much earlier in case the actions to process are cyclic