Fixed segfault by changing TypeInfoPtr to TypeInfo struct.