Ensure array diffing uses provided hash function.  When multiple array items hash to the same key, prefer earlier items