Change forEach(data) to use array

I was having unexpected results when using

    async.forEach(data, iterator, callback)

forEach expects an array, and might not necessarily work with an object