add new helper function `truthy-constant?` for `if` statement
emission. If the `test` is a truthy constant just emit the `then`
branch. This resolves Google Closure warnings about dead branches
ahead of time.