Fix preprocessing.scale for arrays with near zero ratio variance/max

Fix #3722, prolongating #3725.
What I don't like here is that will make an extra copy of the data in memory. It can be a problem for large files.