bson: better fix for the dependency problem with js_of_ocaml and deriving

This is a follow-up to #2513. Use advanced features of OPAM to describe the dependencies exactly rather than approximately.