Updated tree node function registration for specific commands to not
require functions for header only nodes and header nodes with optional
children