fix handling of empty iterables in listsShortlex
test for listsShortlex and stringsShortlex