Use `Hash#transform_values` to clean up `AttributeSet`
Merge pull request #15982 from sgrif/sg-attr-set-map-values

Use `Hash#transform_values` to clean up `AttributeSet`