support for arrays as returned value in flatMap's map fn