Add a multi-type version of iterateSectionsWithType