Add a test on multi-version dep cycles between packages

See https://github.com/ocaml/opam/issues/1778