clean up some linalg errors. fixes #3308
Merge branch 'master' of github.com:JuliaLang/julia