Merge pull request #134 from ddobrev/master

Extended the searching for classes to check nested classes as well
Fixed the returning of empty values when the returned type is a structure.

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

Fixed the returning of empty values when the returned type is a structure
Fixed the generation of 'ToInternal' to check for null only fields of a ref type.

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