Compiler: improve curryfication 3
Compiler: improve curryfication 3

alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,alainfrisch/js_of_ocaml,alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml,alainfrisch/js_of_ocaml,OCamlPro-Henry/js_of_ocaml