Streams: fixed non-recursive flatMaps