Merge pull request #147 from ddobrev/master

A possible fix for the problem with value typed fields of ref classes
Added support for marshalling arrays of pointers to primitives.

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