fix: properly display relations with same subject and object type
Changes the way we detect if a relation is viewed from the subject or object point of view.
Instead of checking if the subject matches the current entity, we store the view mode along with the relation.