minor modifications in relations
Fix wrong argument order.
Preserve behaviour.
Fix retrieving transitive relations.
Merge pull request #4 from dcharkes/master

Debug index: resolve tasks to their results + ordering on URI
Add syntax and conversion for relation entries in the index.
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.