Prevent duplicate structs.

Output forward declared structs only if no definition was found.
Fixes Issue #5, relevant test files added.