Algebraic and system theoretic notions of poles and zeros for matrices of rational functions