Fix mapslice on functions that return scalars.
Merge pull request #2671 from blakejohnson/mapslice-fix

Fix mapslice on functions that return scalars.