Added nested classes for iterators to SWIG.