Small improvements to `inverse_transform` used in `feature_selection`.

The lossy inverse transformation in feature selection needed some explanation, and I made a couple of enhancements for completeness at the same time.