Don't truncate discriminants to host uint for C_uint's sake.
Fix enum casts harder