Add object.type for all objects

Proper support for the .type tag