Add/adapt statistics

Statistics are evaluations that show the distribution of data across a structure. For example, the test case statistics shows the distribution of test results across a hierarchy.