Target can now have literal instead of entity: no Literal value function needed.
Variables held at DomainContext scope.
Compensated for omission in expected results for join2.