don't use for... in for arrays. fixes #3