Minor improvements to merging of inline topics.