Improves the delegate and item handling of SC.TreeItemObserver. Includes unit tests.