Fixed memory access SEGV crash and added TypedefDecl support;
but now there's a funny crash happening around locates on fscanf()
More changes to try to investigate the strange crash...