Checking if a type is a class (ref type) is now done throught StackType instead of MetadataType (didn't work for generic types).