Rewrote the "duplicate keys" patch to:
a) not attempt to collapse "image" and "media" keys (documented as having arrayref args)
b) only collapse arrays with multiple copies of the same value