fixed cholesky_decompose so it works with higher order autodiff with tests
fixed singular_values so it works with higher order autodiff with tests