Fixes for ridge regression with sparse matrix input

 - Improve the solver selection in auto mode
 - Re-enable sparse input for X (even though it is converted to dense,
   one day sparse solving may be supported)