Fixed destructors by keeping track when they are non-trivial.
Wrapped fields of structures with properties.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a test for unions.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Fixed a regression when marshalling arrays. Migrated the C++/CLI back-end to property usage.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Wrapped properties of non-primitive value types as fields.

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