DocBrowser: Added trait handling in inheritance tracker, fixed links for bad types, moved DiagramItemTrait's parent tracking to listener