Define det and logdet for AbstractMatrix. Fix some unrelated ambiguity warnings triggered by that change.
Merge pull request #7544 from JuliaLang/anj/det

Define det and logdet for AbstractMatrix.