Propagate module_type from class to ancestor factories

[#50752269]

The block for ancestor in the mdm_module_class factory did not pass the
mdm_module_class's module_type ignored attribute to the ancestor
factory, so mdm_module_class factory built instance were mysteriously
having different module_types.