function utilCheckTagDictionary(tags, tagDictionary) {
    for (const key in tags) {
        const value = tags[key];
        if (tagDictionary[key] && value in tagDictionary[key]) {
            return tagDictionary[key][value];
        }
    }
    return undefined;
}
searches a dictionary for a match, such as `osmOneWayForwardTags`,
`osmAreaKeysExceptions`, etc.
@template T
@param {Tags} tags
@param {TagDictionary<T>} tagDictionary
@returns {T | undefined}