hack in support for indexing already visited typedef declarations of template type