Fix #1410: Cleanup ScalaJSOptimizer