Add method ResolvePrivateTagForWriting().

This method will add the private creator if it isn't in the data set
yet.  I also changed some "iter++" expressions to "++iter" for efficiency.