[FIX] Added missing assignment in QueryContext#cast(Object,String).
[FIX] External variables with non-empty URI have to be declared.
Merge pull request #673 from LeoWoerteler/test-suite-fixes

Test Suite Fixes, merged by me because Christian is on vacation.