26566 maximize attachment sharing between revisions of a document

This fixes a problem when multiple copies of the same attachment get created in case of two documents having the same attachment content. 
Dict isn't a very good variable name here. ProcAcc or something would be easier to tell that this is the accumulator for the Processed variable. Had to check a couple times to convince myself I was pairing them correctly.