[PATCH] Allow smarter node creation based on visibility during createtree