feat: improve relation display name
Improves the function used to retrieve an entity name to work with users, using login, firstname and lastname relations.
Also makes the generated ReferenceField use this function to display the referenced entity.