Fix search_tree_benefits query to include plots outside an itree region

Also refactors converting tree(s) into a list of dictionaries, which is now
done by a helper function, instead of multiple places