Remove duplicate array keys.