correctly build an array of nodes, fixes #8
Merge pull request #9 from spumko/8/node_arrays

correctly build an array of nodes, fixes #8