Cleanups. Bug fixes for LU and SVD.