compiler: force enumerators to have values
compiler: js: first pass at validate() methods
compiler: js: factored out _JsNumberType
compiler: improving JS validate