Change rendering of Erlang kernel options

If we try to overwrite the default attributes in node['rabbitmq']['kernel'], this is not working:

        :kernel => {
          :inet_dist_use_interface => "127.0.0.1",
          :inet_dist_listen_min => 4000,
          :inet_dist_listen_max => 4100
        }

The error message is:
undefined method `each_pair' for []:Array

The method each_pair would be defined for a hash but for an array.
Using each instead of each_pair solves this error.