timob-17476:timob-17478: correctly convert JS value to kroll dict or string array
Merge pull request #5973 from pingwang2011/timob-17478

timob-17476:timob-17478: