YAXAttributeForClass doesn't work in certain use cases

The provided unit test shows how `YAXAttributeForClass` doesn't serialize properties to attributes as it should.