Use type adapter factory to hard-set serialization of Credentials.

This prevents things like CaseFormat changes in downstream providers from affecting how credentials are stored and retrieve. It is also more congruent with how type adapters work.