Add type accessors to Dependencies
info: improve dependency listing
deps: fix --1 output

Fixes #17550.