Product of dense matrix with sparse matrix can be dense.

Product of dense matrix with sparse matrix cannot be created with createSparse().  With probability 1 such products are dense (e.g. dense x identity).

Switched to use Matrix here, and it's safe to use setRow instead of replaceRow since the row being "replaced" has just been created.