Modify TreeItem and AbstractTreeItem to allow work with styled text

Sometime a tree item can contain text with styled text and it is required (in some cases) to work with these styled text in labels.