Warning: implode(): Invalid arguments passed in uc_coupon_tokens() (line 85 of uc_coupon.tokens.inc).

It should be changed to:

if ($sanitize) {
  array_walk($codes, 'check_plain');
}
$values[$tokens['codes']] = implode("\n", $codes);

PHP's array_walk() returns a logical value, not the array itself.