Backport Hash deep transforms from Rails 4+