table: use boost::iterator_range in NameTree

refs #2155

Change-Id: I14efacf26aa1143177038fff3cf20d9d845f2c68