Prevent `flatten` infinite recursion

by wrapping in a proxy object that explicitly doesn’t respond to
`to_ary`