Fix typo in treeView API

When expanding a treeView, one is passing in the nodes to be expanded and not
 collapsed.