Added macro REFCOUNTED_TYPE().

This is to simplify renumbering of the types.