reduce unnecessarily recursive functions (3/n)
reduce unnecessarily recursive functions (3/n)

Summary:
js_of_ocaml generates suboptimal code because these functions are part of a large `let rec ... and`:

```
// create a dummy function
var error_message_kind_of_lower = function _cRB_(_cRA_){return _cRB_.fun(_cRA_)};
// later, sets `error_message_kind_of_lower.fun = function(param) ...`
caml_update_dummy(error_message_kind_of_lower, function(param) { /* ... */ });
// calls look like this, which does `error_message_kind_of_lower.fun.apply(null, l)`
caml_call1(error_message_kind_of_lower,l)
```

since they are not recursive, moving them out makes it generate:

```
var error_message_kind_of_lower = function(param) { /* ... */ };
// calls look like this
error_message_kind_of_lower(l)
```

Reviewed By: dsainati1

Differential Revision: D14329755

fbshipit-source-id: fae3e7cf86deb0e428d775652ad4c1e5446edc12

mroch/flow,samwgoldman/flow,samwgoldman/flow,mroch/flow,samwgoldman/flow,samwgoldman/flow,facebook/flow,mroch/flow,facebook/flow,facebook/flow,gabelevi/flow,gabelevi/flow,mroch/flow,gabelevi/flow,samwgoldman/flow,mroch/flow,samwgoldman/flow,samwgoldman/flow,facebook/flow,facebook/flow,gabelevi/flow,mroch/flow,gabelevi/flow,gabelevi/flow,mroch/flow,gabelevi/flow,facebook/flow,facebook/flow