evaluator: speed up an simplify confusion matrix computation

Also, add another row for reference events with unmapped types.