Gracefully handle struct decl/type mismatch when generating TypeInfo.

The type should have already been resolved if the struct
itself is, but due to multiple-types-per-declaration issues
in DMD, this might not be the case.

GitHub: Fixes #470.
Merge pull request #511 from klickverbot/issue-470

Gracefully handle struct decl/type mismatch when generating TypeInfo.