Fix typing of js_of_ocaml properties.