add array-sqrt/{nan,err}
better error-checking in matrix-cholesky