When storing items, the object-type is detected and stored.