fixed iterator and toArray
Merge branch 'master' of github.com:Foris/darwined-core-php-clients