Re #9782. Cleaning up and documentation in IFunction1DAutoDiff

Added doxygen comments and some general documentation. Cleaned up the interface of AutoDiffJacobianAdapter and added error handling.