Fixed IncrementalResult not working with equal items.

If you added items to an IncrementalResult which were equal under the Sort that it was using, it failed to add the "duplicate" items. It should only fail to add items when they are *reference* equal to existing items in the result.

Fixed this by wrapping the passed comparator to with another comparator that disambiguates equal items using their hashCodes.