Prevent side effects in `Hash#with_indifferent_access`.
Merge pull request #10784 from senny/10526_prevent_key_transformation

Prevent side effects in `Hash#with_indifferent_access`.