[ubsan] Add deduplication functionality, always enabled.