Fixed incompilable code generated by the C++/CLI back-end when wrapping certain unions.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #357 from ddobrev/master

Fixed incompilable code generated by the C++/CLI back-end when wrapping certain unions