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)
Merge pull request #1 from kitaindia/master

Fix bugs HW 1-6