Changed AnalysisMethod so that it acts on a SimulationState. TimeSeries
now generated by SimulationHistory, which runs the analysis method.

Changed TestSimulationHistoryImpl accordingly.