Support for named iterations

The reason I haven't included getField here is that there's difference between failing to access that attribute and attribute having null value.