include _type in the header if necessary (i.e. if we are dumping a whole index)