Backport 1.8 gh 4483

Backport gh-4483, `BUG: Fix commutativity of {dot,multiply,inner}(scalar, matrix_of_objs)`