Fixed njs_iterator_to_array() with sparse arrays.

This closes #524 issue on Github.
2 files changed