Fix RO aggregation problem with local URIs; fix query test case; update package dependencies