Fix iterating over arrays fetched from objects.

an object containing an array can now be iterated.

$object = new Object;
$array = [[ 'name' => 'test'], [ 'name' => 'test2']];
$object->setProperty($array);
$tpl->assign('object', $object);

Can now be iterated with
{iteration:object.property}{$object.property.name}{/iteration:object.property}