Clean up (and slightly speed up) blinear scaling
Avoid scaling empty and flat textures
Applied loop tiling/strip mining to algorithms where it makes sense
Merge pull request #1648 from PeterTh/master

Scaler cleaning, speedup