Fix #1616: The ordering of the bases was no longer consistent, therefore is_equivalent would fail occasionally
Merge pull request #1616 from mdboom/unit/sorted_ordering_of_bases

BUG is_equivalent for units sometimes fails