internal/v4: resolve ids

This allows all charm store paths to contain charm URLs that are
not fully specified.
An inStore entry that is not matched would enhance the test.  Something similar but rejected by the query.