Added toMatrix in ScalarLiteral