[REG2.065a] Issue 12010 - Undefined template symbols for static library linked with debug symbols

https://d.puremagic.com/issues/show_bug.cgi?id=12010

Struct destructors and postblits will be stored in `TypeInfo`. So, partial semantic3 running for structs declared in non-root modules should also consider them.