Flatten static method and enum references.
Under js_flatten, all statics need to be explicitly defined.