[ocaml] disallow type "num" and "str" in action parameters