In the stub generator contribution, a variable was named “val”, which caused Ocaml to fail, since this is a reserved word.
Maybe we can add a warning in case of reserved words, or if it is already the case, to add “val” in the list of reserved words.