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