Quasi-analytic vectors and quasi-analytic functions