DataQuality{Flag, Dict}: fix TypeError raising