Minimal example which shows that traversing ref attributes from an entity 
result in just the keyword for entities with :db/ident and in the full entity for
entities without a :db/ident.