fix gemv! and gemm! in empty cases. fixes #7571

should always mutate, not sometimes return a new array