Corrected the generation of the native constructor when in a structure.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed the hard-coded "ret" variable.

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