Add recursive submenu support for node library.