Fixed inability to resolve global symbols.
Added .Type property to all definitions and declarations (sigh!).