Bug 1114574 - Refactor and improve MCompare::tryFold. r=h4writer