Fixed generation of non-primitive/reference out/ref types.
Fixed generation of incomplete types by walking through the complete declarations.