fix for has_key check in types.Model to support base classes, fixed bug with AttributeFilterDiffers exception