A few bug fixes related to stable structure compositions.  Still a bug in the hull distance calculation code.