Added test for Castclass.
Added support for Newobj on value types.