Fixed d3 tree's nodes() property to return an array of GraphNode instead of the tree layout.