Added a method "map" for mapping from the porperties of the objects to the keys of the dictionary. The default implementation returns a dictionary where keys and values are the same.