allows string argument in allNodes
allows nested arrays with strings
Merge pull request #49 from MathiasPaumgarten/allNodes-string

allows string argument in allNodes