call optimize on both sides before doing actual merge to simplify resulting pipelines; fixes #192
Merge pull request #193 from jdegoes/ready/192

call optimize on both sides before doing actual merge to simplify result...