Support work units with multiple commits.
Fix the implementation of isDup: only look at the DiskLoc if the keys match.