Fixed iterating over an object with foreach
Merge pull request #23 from garygreen/develop

Fixed iterating over an object with foreach