Creates a new PartIter for iterating over toplevel's subparts.
toplevel
a Object to use as the toplevel
a newly allocated PartIter which should be freed using free when finished with it.