cleanup TRAITS templates for RangeType etc