Make mutable matrices not hashable (issue 880)

Note, the change to the cache is required because some functions in the matrix
expressions, such as adjoint() call to Function.eval, which is cached, with
MutableMatrix arguments.