[ocaml] Avoid non-unit-statement warnings in examples

Thanks to rwmjones for the tip as to how to solve this.  See #2649
2 files changed