Fix Array#flatten to try and convert values using to_ary