Move Optimizer into JS
Move env newtype lookup into Environment
Fix warning/lint error in DCE