Fix \ and / for diagonal matrices. Modify tests to check some of the changes. Fix errors in revealed by the test changes.
Merge pull request #4899 from JuliaLang/anj/diag

Fix \ and / for diagonal matrices