Fixed the class containing context functions to be unsafe.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed the "protected" modifier of setters when in a structure. Changed a generated local variable to a non-conflicting name.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Replaced an expression with a variable so that the & operator works.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Used the qualified identifier when allocating return values, to handle nested types.

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