Improve comparator_reduce

Fixes https://github.com/ocaml/oasis2opam/issues/7