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