Fix index entity conversion with failing on non-index entries.
Fix relation lookups not working.
Add tasks for sanitising (transform Use(Def(uri)) to Def(uri), remove property annotations) terms for usage in relations.