generated swap functions insert reinterpret case for enumerations in correct places