Merge pull request #140 from ddobrev/master

Use properties in structs as well
Improved the marshalling of arrays.

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