Various cleanups, essentially around MonCounter/Rate
The main goal has been to fix the templated code for template specialization. When used properly, 800 lines of code could be dropped for the same result and a more readable code.
@frankm @jost I could not test this to the end as many tests are failing for me locally, already with head of master. So I'll use the ci-test for that. Wait for the result before merging