Object Files and Schemata: Factorizing Declarative and Procedural Knowledge in Dynamical Systems