fixing diagonalization of ImmutableMatrix bug