Add support for importing hierarchical tags from Lightroom.

For #9321.