Avoid tag conflicts when finding tag titles.

Previously this used a deprecated function to find tag titles that
would fall victim to tag conflicts between IFDs. This now only looks
up the tag titles in the current IFD.