Made schema_dumper use valid_type.