[geany/geany] be131b: Extend dedup() and merge() to unref the duplicate tag when needed