Fix MarkovProcess.
Test stochastic processes.
Copy StochasticProcess in case it is reused.