COMPILER: bound the depth of JavaScript constant

https://github.com/ocsigen/js_of_ocaml/issues/4
the 2 function `translate_expr` and `constant` now return a list of statements