Type promotion for keys and values for Dict merge

Discussed in #8877.