add function isType to object model

Those functions are specified for each type of
objects ( tooltips, image, mouse).
We use them in the template.