closed #3579: TestLua->BugsTest->bug914 crashes if clicking 'reset' button all the time.

Also fixed:
* 1) Load wrong `studio` module in `act.lua`
* 2) Bug fixes in `setTouchEnabledForLayer` for JS and Lua bindings.