Fixed bug in eval_der.
Fixed evaluation of lambda function.
Testderivative works properly.