improve runtime check of properties attributes.

improve runtime check of properties attributes.
But, it can't be merge like this.
In the method to add/remove animation, i was thinking that "key" was the key for (KVC) to use with the object, but it might be not ... for exemple, in the unit test, a key "hello".