Closes issue #31: Do not use for-in to iterate over array