public function getIterator()
{
if ($this->loaded === false) {
$this->items = $this->getReferences();
$this->loaded = true;
}
foreach ($this->items as $i => $item) {
if (is_array($item)) {
$this->items[$i] = new ArrayData($item);
}
}
return new ArrayIterator($this->items);
}