fixed problem with Hom

A test: test/tensor.m2 now fails, but this is because it is doing
bad things wrt chain complexes.
Started to reorganize mutable matrix code.  Did NOT check tests here.