Restores use of forEach iterating on non-array values. Fixes #345
Adds error message for null array values. Adds disabled sparse array check.
Merge pull request #353 from tessel/tcr-345

Restores use of forEach iterating on non-array values. Fixes #345