Fixes pysb (#902) (#907)
Fixes pysb (#902) (#907)

* dont assume strippedsyms to be reals as this will break derivatives

* fix nested total derivatives, fixes #901

* adress review comments

* add comment
AMICI-developer/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI