fixed 3rd order autodiff tests for:

cumulative sum, determinant, elt divide, elt multiply, exp, inverse,
log determinant, log, max, min, prod, softmax, trace