Fixed copy constructor in Pipeline, closes #672.