Fix compilation failure in fparser

When that debugging cpp symbol was unset, we were trying to
instantiate template functions that hadn't been defined.
set correct stack size after AutoDiff
Add testcase for optimizer bug in FParser
smaller testcase
typo. how did this ever work?!
catch exception thrown in Commit()