Some much-needed refactoring in accept_childnodes
Some much-needed refactoring in accept_childnodes

Factor out the multi-value to list promotion function in accept_childnodes
and call it add_to_list.  This allows for simplification of later code
using a higher-order trick (see the $expect variable).  Much win.

catalyst/PRANG,catalyst/PRANG