Store a reference to Index in TranslationUnit

This is to fix lifetime management of index objects.