topo_api: Compatibility changes for new ocaml-topology API

ocaml-toplogy no longer uses VInt.t for anything, so some manual
coercions can be dropped, while other need to be added.
Merge pull request #242 from frenetic-lang/topo_api

Compatibility changes for ocaml-topology