1. Fixes #4957 that click test TestChangePlaySection, then it will crash.
2. Modify default value of selectedState to serialize check box data.
Merge pull request #9455 from samuele3hu/v3_cocostudio

Add Websocket support for Mac platform
Merge pull request #9459 from pipu/fix_#9457

Fixes #9457