Encoding an enum field with the pretty encoder results in an ExpectedError when decoding. In emit_enum_variant of the pretty encoder, "variants" and "fields" need to be added to behave the same way as the normal encoder.