Reimplement predictable_pretty_json with forking. In the forked process,
Hash#each is overridden to sort by key and JSON is forced to use the
pure generator (which invokes Hash#each).

This function is still vulnerable to being broken by incompatible changes
to the JSON gem.
Merge branch 'master' of https://github.com/kayakco/puppet-r9util