Added TextFormat handling for types.