Refactor groupby group_prod, group_var, group_mean, group_ohlc
Followup to a previous [PR](https://github.com/pandas-dev/pandas/pull/24954).

Continue refactoring cython function implemented in tempita into fused types.