Fixes #160 - re-runs advanced optimizations until no changes are detected.

* That's because merging adjacent selectors can lead to new optimization opportunities.