Loosen signature for some matmul functions as a prepartion for array views.
Merge pull request #8574 from JuliaLang/anj/dot

Loosen signature for some matmul functions as a prepartion for array views.