Add missing test for response destructuring.
Prevent [response].flatten from recursing infinitely.

Returning `self` from within the array returned by `to_ary`
caused this. Instead, we can just substitute another object.
It provides the `each` behavior required by the rack spec.
Merge pull request #13982 from dskang/fix-response-flatten-infinite-recursion

Fix response flatten infinite recursion