Fparser fixes:

* Set correct stack size after AutoDiff
* Catch exception thrown in Commit()
Add minimal testcase for optimizer bug in FParser.
Merge branch 'stacksize'