Correct handling of defaults when translating enumerations.