Fix mapslice on functions that return scalars.