This patch implements basic support for indexing of dependent declaration references. Now the indexer tries to find a suitable match in the base template for a dependent member ref/decl ref/dependent type.
This will be used to improve the "go-to-definition" / "find usages" features in Xcode.