Iterate over arrays via forEach instead of for...in. Fixes #77