Transform dependency graph depth-first; fixes #423

Review URL: https://github.com/google/traceur-compiler/pull/428

Closes #428.