Fix dummygen to not construct generator during import