Fix stats-reset function.

This enables is to start a measurement interval with a clean slate.