Optimization: avoid to save twins if not needed
Merge pull request #86 from jay3/feature/twinnable_optimizations

Optimization: avoid to save twins if not needed
Merge branch 'master/chiba2' into master/dubrovka