XD-2113: Fix redis agg-counter when right of interval on the hour

Will merge myself. 

When we go back to this issue and consider merging to master though, I think we should:
1) consider whether the ` || dt.isEqual(end)` part applies to others. Early tests seem to indicate that not, but..
2) review the interval handling altogether. For a fixed set of `--from` and `--to` boundaries datapoints are considered "in" or "out" depending on the `resolution` value