Switch back to `Hash.dup`
#26301

maclover7 wants to merge maclover7:jm-fix-comment into rails:master

We do not currently have an analysis of these two commits