Move expanded and selected attribute from TreeItemElement to TreeItem