[RB] fix matrix scalar multiplication

- everytime we performed a scalar multiply, the matrix got transposed.
- fixes Caley-Hamilton decomp (#3)