Fixed a few bugs

Fixed bugs with compound types.
Trying a new approach to unboxing value types.
Fixed a few bugs (continued)