Remove the implicit keyword for TreeNodeRef and some other small issues