Fixes #899: Issue in scalar-matrix MX operation
Merge pull request #902 from casadi/issue_899b

Fixes #899: Issue in scalar-matrix MX operation