list(): restore SUBLIST behavior

Fixes: #25002
2 files changed