[mycpp] Fix and simplify NewDict() heuristic