The same kind of wrapping for map than for apply 

In particular, this now allows doing map operations on heterogeneously typed tensors (say, one ByteTensor and one DoubleTensor, iterated over simultaneously).