JS backend: tests for KT-6401 JS: wrong result for code with many spread operator
JS backend: fix KT-6401 JS: wrong result for code with many spread operator

#KT-6401 Fixed