Improve on functionality for matrices with zero dimensions
Merge pull request #3853 from JuliaLang/anj/zerodim

Improve on functionality for matrices with zero dimensions