Fix support for custom attribute classes in CustomAttributeDataMirror which indirectly inherit from Attribute. Fixes #11564.