Fix #1354: Add facade type for __ScalaJSEnv for doc
Fix some scaladoc warnings in UndefOrOps
Merge pull request #1364 from gzm0/jsenv-doc

Jsenv doc
Fix #1369: Emit inlined ctor statements in correct order
Fix #1021: IR-check assignment to val fields

Assignment to immutable val fields is only allowed in constructors.

Note that scalac generates code in which vals in traits are
initialized through a synthesized setter. These setters are
indistinguishable from normal setters at the IR level. Therefore, IR
emitted by scalac only emits mutable fields. This restriction might
not apply to other tools generating IR.

This commit allows the optimizer to optimize things based on the
immutability of a field.