Fixs: 1) Move access functions from Instance to Class and its direct registering. 2) Store object.id before its '.dup'