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

...ing pipelines; fixes #192