Redmine 6541 - Remove unexpanded lists when extending lists

How about a test for `{ @(undefined), "entry", @(undefined) }` producing `{ "entry" }` ?