added support for a bunch more node types to getNodeChildren

also, sort of now realizing this belongs in a separate library

...which I actually already knew, because I've written all this
before...