Fix failing examples for Attribute equality

Stub Class.type to return Types::Object
Fix failing examples for Attribute#hash

Stub Class.type to return Types::Object
Fix failing examples for Attribute#name

Stub Class.type to return Types::Object
Fix failing examples for Attribute#optional?

Stub Class.type to return Types::Object
Fix failing examples for Attribute#rename