Extend mapping layer with tuple transformation

After lots of considerations it turns out that for clarity and
simplicity transforming tuples should definitely belong to mapping
layer.

Now when wrap and/or group is used in the mapper definition a special
transformation process will take place on the tuples before they are
mapped.