merge.go: implement DedupStrings feature

If enabled, merger will deduplicate all strings it meets.
Otherwise, only hash key and class names will be deduplicated
merge.go: some code cleanup