#to_ary is allowed to return nil. Fixes Array#flatten as per rubyspec