Added support for HierarchicalDataTemplate and HeaderedItemsControl.