setupLaplacian: Add optional diagonal regularization
This generalizes the necessary regularization for the umfpacktest and makes it usable for other algorithms. A hint in Cholmodtest is added and the other tests using this methods are kept unchanged.
The method was also cleaned up and modernized.