Speed-up isequal for dict with ===