Fixed names for loop_over_array and loop_over_hash

Names of "Loop over an array of package names" and "Loop over a hash of package names" partials are swapped. You may see it at the bootom of http://docs.opscode.com/essentials_cookbook_recipes_use_ruby.html . Fix attached. Also trailing newlines are dropped (second commit).