Refactor Dependency.expand
Use Enumerable#grep
Add type accessors to Dependencies
info: improve dependency listing
deps: fix --1 output

Fixes #17550.
Closes #19668.
info: simplify keg listing