Adds tree extended to add lodash collection methods on nodes.