sortSolutions: prefer more dynamics if any stars

When sorting States

 1. prefer fewer stars to more stars
 1. if any stars, prefer more dynamics and statics to fewer (since those both eat away at the amount that the stars must take up)
 1. if no stars, prefer fewer dynamics and more statics

This changes the rule slightly to: "prefer fewer dynamic segments and prefer using them for less of the match".

Fixes #21