Generic classes with non-fixed layout are now supported

Only for for classes without Objective-C base classes or the objc attribute.