PartialLoop helper: prevent convert traversable model to array recursively

I consider when we pass a model as traversable to partial loop, we don't need to convert it to array recursively.
For example, when we pass a form collection (of fieldsets) to partial loop as the model, if we converted it to array recursively -> fieldsets will converted to array too, in view script we can't access the fieldset through object key.
Add test
Add test
Merge remote-tracking branch 'origin/patch-1' into patch-1
PartialLoop helper: prevent convert traversable model to array recursively

I consider when we pass a model as traversable to partial loop, we don't need to convert it to array recursively.
For example, when we pass a form collection (of fieldsets) to partial loop as the model, if we converted it to array recursively -> fieldsets will converted to array too, in view script we can't access the fieldset through object key.
Merge branch 'patch-1' of https://github.com/tranba/zf2 into patch-1
Added unit test for should not convert to array recursively if model is traversable
Fix CS
Merge remote-tracking branch 'origin/patch-1' into patch-1
Merge pull request #4969 from tranba/patch-1

PartialLoop helper: prevent convert traversable model to array recursive...
[#4969] CS fixes

- trailing whitespace
Merge branch 'feature/4969' into develop

Close #4969