Mapping to array with different values ex map.class('name').use('fullname')

Added tests (42,43) for mapping objects/arrays when using different
values in the map for the data keys and the attribute values. ex
map.class('name').use('fullname')

Additional the proposed solution for the problem.

Also removed a passing of a key to the iterate method when the data is
of type object as it is not used.