Fixed some problems with arrays of void after mapping void* to IntPtr.

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

Fixed some problems with arrays of void after mapping void* to IntPtr