Fixed up collection stats to cope with any dataset implementations