Add a record to the tlv stream. Only one record of each type is allowed, so this replaced the previous record of the same type.