Ensure both sides of ternary operation in bulk::reduce have the same type