Fix segfault and bug with equal eivals in matrix power (bug 614).