[CHEF-5132 ] Fix ImmutableMash and ImmutableArray to_hash and to_a methods

https://tickets.opscode.com/browse/CHEF-5132