extend linalg and array operations to work on Numbers when it makes sense and is unambiguous
Merge pull request #1871 from stevengj/linalg_scalar

RFC: extend linalg and array operations to work on Numbers when it makes sense