merge revision(s) 44370: [Backport #9576]

This backport resolves a regression in 2.1.1 with Hash#reject

This patch will fix the behavior and will be released in 2.1.2, however is the expected behavior in 2.2.0

See ruby/www.ruby-lang.org#666 for more information.