Reduce the scope of TreeDSL; eliminate it from the compiler.

TreeDSL is now package-private to scalajs.ir. It has also
lost its IF method, which was replaced by the If constructor
in the few places it was used.