Add sizeof_type to compute the size of the representation of an object