Avoid direct use of TType in ObjectWithDIct

In order to reduce header parsing, which will save memory, we are eliminating unnecessary uses of the TType class.  This pull request removes the direct use of TType in class ObjectWithDict.  After this pull request is merged, the use of TType will be confined to class TypeWithDict.
Please merge this pull request as soon as convenient.