fix handling of array argument to makeNodeResolver

With for...in enumeration the indexes are given as strings, and "0" + 1
gives "01" rather than 1. Switching to a regular for loop is a solution.
Merge pull request #555 from davidchambers/resolver

fix handling of array argument to makeNodeResolver