Add ability to turn off slug scoping - v2

#2243 was the original PR.

I removed Hash#safe_deep_merge extension since it was used only in one place and addressed other comments made in that PR so this should be good to merge.