Add a utility function to replace constants in sympy expressions.
Provide the full namespace information to state updaters.
Do not try to replace constants in the linear state updater for now.