internal/v4: resolve ids

This allows all charm store paths to contain charm URLs that are
not fully specified.
check the same name as well.