Attach type descriptor to each object instance instead of using attribute.