Support simple item as list value for nth() (#14085)

Change-Id: I0f5e29c43f946c56eea75525188e7ffd6aae8344