Fix: use valid class name at allocating struct
should have cached native struct type
Type.getRealCast should use toCast
Merge pull request #31 from infosia/classname_struct_type

Fix: cache type & allocate struct
changes necessary for ios block support
merge with block implementation and updated code, test cases
more fixes based on testing