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