allow scale(b,A) or scale(A,b) when b is a scalar as well as a vector, don't restrict scale unnecessarily to arrays of numbers (e.g. scaling arrays of arrays should work), and improve documentation for scale\!
Merge pull request #5042 from stevengj/scale

RFC: allow scale(b,A) or scale(A,b) when b is a scalar as well as a vector