Convert Ruby hash into array
===

The [Savon gem][1] I am using is giving me back a single object or an array, and I have no way to know which it will be until the SOAP response comes back.

For convenience I would like to have a `nil` response converted to `[]`, a single response converted to `[obj]` and an array stay as an array. This can easily be done with [`Kernel#Array`][2], thus:

    > Array nil
    => [] 
    > Array 1
    => [1] 
    > Array [1,2,3]
    => [1, 2, 3] 

However, because `Kernel#Array` calls `to_a`, it fails for [`Hash` which overrides `to_a`][3]:

    > Array({a: 1})
    => [[:a, 1]]
    > Array([{a: 1}, {b: 2}])
    => [{:a=>1}, {:b=>2}]

On line 2 above I would like to see `[{:a=>1}]`.


  [1]: http://savonrb.com/
  [2]: http://stackoverflow.com/questions/385912/ruby-object-to-a-replacement
  [3]: http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-to_a