Hotfix: Changed array_walk to foreach in Zend\Stdlib\Hydrator\ArraySerializable

The data array is manipulated while traversing it. This does not work
with array_walk.

This will fix #4258

See PHP documentation:
http://www.php.net/manual/en/function.array-walk.php