Achieve compilation goal for const AttributeIterator.
Doesn't work yet, because QHash doesn't want to give us a const ref to its values.