Enforce reference types in the iterator.