Faddeev approach to pion production and pion-deuteron scattering