handle path namespaces in cts-resolve-reference-from-index (fixes #1)