stats: delegate counter registration/unregistration to StatsCluster
stats: handle NULL arguments in stats_cluster_new()
stats: add unit test for StatsCluster