Interpreting Dynamical Systems as Bayesian Reasoners