Fix for ridge regression with sparse matrix input

Re-enable sparse input for X (even though it is converted to dense,
one day sparse solving may be supported, and there are current valid use
cases where sparse input is typical and doesn't blow up the SVD)