Merge branch 'hotfix/3550'

Close #3550
Fixes #3541
Fix: Calling count() results in infinite loop
Test added for count() in KeyListIterator
Merge branch 'master' of git://github.com/bramstroker/zf2 into hotfix/3562
Merge branch 'hotfix/3562' into develop

Forward port #3562