evaluate_steady_state.m: fix bugs when static and dynamic models differ.

Closes #661