Add a new method to agents that lets you inspect their roles in linked_agent relationships.

Required a new method on relationships to efficiently access all properties for
a given type of relationship, and a new method on BackendEnumSource to do a
fast bulk lookup of a list of enumeration value IDs.
Added indexing for the new linked_agent_roles field.