[C++ OTF]: add IrCollection::map method for accessing underlying map of templateId to Ir objects for #65