Bug fix
Merge pull request #1 from johannesu/bugfix

Bug fix from Johannes fixing AutoDiffTerm with three arguments.