Don't construct a Proc if no block is given
Return an Enumerator if no block is given
Merge pull request #16149 from sferik/refactor-transform_values

Refactor Hash#transform_values and Hash#transform_values!