Reduce header parsing

Change how we check if a type has a dictionary to use TClassTable::GetDict().
This reduces memory use and increases performance.
Please merge as soon as convenient.