BUG: allow cumprod and cumsum to work with bool dtypes

closes #4170.