template for type field

added a template to print type string if not object