text: Title: Weird issue when using `use_enum_values` in Pydantic v2
  Body: ### Initial Checks
  
  - [X] I confirm that I'm using Pydantic V2
  
  ### Description
  
  I encountered an extremely weird issue when using `use_enum_values` in a pydantic model. It works as expected in most of the cases but when I add a field which is a list of another model and if that other model multiple fields which has the same enum type as the original model, the enum value fails to serialize to string when using `model_dump`.
  
  ### Example Code
  
  ```Python
  from enum import Enum
  from typing import Optional
  
  from pydantic import BaseModel, ConfigDict, conlist
  
  
  class Currency(Enum):
      USD = "USD"
      CAD = "CAD"
  
  
  class MyBaseModel(BaseModel):
      model_config = ConfigDict(
          use_enum_values=True,
      )
  
  
  class TestModel(MyBaseModel):
      currency: Currency
      amount: int
  
  
  class PreferredCurrencies(MyBaseModel):
      currency_one: Optional[Currency] = None
      currency_two: Optional[Currency] = None
  
  
  # Model similar to TestModel with addition of an extra field 'preferred_currencies'
  class TestModel2(MyBaseModel):
      preferred_currencies: Optional[conlist(item_type=PreferredCurrencies)] = []
      currency: Currency
      amount: int
  
  
  m1 = TestModel(currency=Currency.USD, amount=100)
  print(m1.model_dump(exclude_none=True))  # Output: {'currency': 'USD', 'amount': 100}
  
  
  m2 = TestModel2(
      currency=Currency.USD,
      amount=100,
  )
  print(
      m2.model_dump(exclude_none=True)
  )  # Output: {'preferred_currencies': [], 'currency': <Currency.USD: 'USD'>, 'amount': 100}
  ```
  
  
  ### Python, Pydantic & OS Version
  
  ```Text
  pydantic version: 2.9.2
          pydantic-core version: 2.23.4
            pydantic-core build: profile=release pgo=false
                   install path: /Users/pranab/.pyenv/versions/3.12.5/envs/my-env/lib/python3.12/site-packages/pydantic
                 python version: 3.12.5 (main, Sep 20 2024, 23:47:29) [Clang 15.0.0 (clang-1500.3.9.4)]
                       platform: macOS-15.0-arm64-arm-64bit
               related packages: typing_extensions-4.12.2
                         commit: unknown
  ```
  