Fixed a bug that caused systems with algebraic variables in the middle of the list  of dynamic variables to break (there was a counting error in make_res_function).   Had to rewrite that function a bit to fix it.  Now a normal  python list of algebraic rules is created to draw the rhs's from for algebraic rules.
Fixed a bug that caused systems with algebraic variables in the middle of the list
 of dynamic variables to break (there was a counting error in make_res_function).
  Had to rewrite that function a bit to fix it.  Now a normal
 python list of algebraic rules is created to draw the rhs's from for algebraic rules.

GutenkunstLab/SloppyCell,GutenkunstLab/SloppyCell