refactor the Promises$reduce state machine
performance improvements the Promises$reduce state machine
PR feedback from @petkaantonov

- REDUCE_PHASE_* constants
- eliminate implicit Boolean type coercion