check for duplicate names error in format_types_list