Generate: GenerationConfig can overwrite attributes at from_pretrained time
# What does this PR do?

Fixes #24104

As with other configuration files, we should allow overwriting attributes at `from_pretrained` time. The latest change to the `GenerationConfig` loading code disallowed it -- this PR fixes it and adds a test.
_The documentation is not available anymore as the PR was closed or merged._