Use to_hash to work around a Chef bug.
See https://tickets.opscode.com/browse/CHEF-1804 for context.