Fix for #2461 JS driver lost variable digits

It fixes #2461.
JS driver will lost variable digits when args is String.
If args is a single Array, it will be unfolded as String during composing variable name.
I think it is safe but please review it.