JS lib: simplify DefaultPrimitiveHashSet.
JS lib: provide Kotlin object as parameter of IIFE.
Minor: added regression tests for KT-4235

#KT-4235 Obsolete
Minor: added regression tests for downTo.

Adopted tests from patch attached to KT-2586.