Fixed generation of non-primitive/reference out/ref types.
Fixed generation of incomplete types by walking through the complete declarations.
Marshalled pointers to primitive types as such instead of using IntPtr.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>