PR feedback from @petkaantonov

- REDUCE_PHASE_* constants
- eliminate implicit Boolean type coercion