Adds named map

For an interable with elements that have a .getName(), returns a map of
elements.
Allow multiple elements in namedMap