Test dist_type preservation.