bug fix to pass tests. 

It seems this code can't pass 2 tests...

should not error on non-sensical cases of enumerables, like hashes
should still work for the case of non-array enumerables that do make sense, like iterators (valid palindrome)