Added StatisticsServer input checks

Had to add new method ExplanationSource.produces_key