List license names for multiple-license depencies

[Finishes #72085280]

Also refactored logic around prioritizing gemspec licenses over
detected licenses to make it more obvious that detected files
should be ignored whenever one or more licenses are listed in
the gemspec.