ssm_diff_derivative and corrections to jac