Support scalars in elementwise products

Supporting scalars in elementwise products at both positions (but not simultaneously) to address #656.
At the moment the pull request misses scalar support for `.*`.
I will add it, once the code for `./` would get ok after the review.