Fix module import for iterdump method (#2945).