Fix bugs HW 1-6

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)

ex) ('a'..'a').palindrome?

Range#reverse cannot use.