Fix small bug in Stats where custom groups for counters were ignored.