update armature

1.Fix compile warning
2.do not retain target when regist frame event and movement event
3.when add a skin to last index, applay it's skindata to the previous skindata