Made Tag serializable.