declare a to be VecOrMat{T}

inspired by @timholy