[agent] extract addCidToComponent
[inspector] introduce isTypeNavigable
fix tests