Generalize container matrix to AbstractMatrix for most factorization types
Separate test cholfact(x::Number) for cherrypicking, as discussed in #9326