fixed TypeDescriptor to understand structs.