Allow setting of iterator class as a class property