Implemented CCDictionary::writeToFile with CCDataVisitor.

1. More strict code;
2. Extended supported types set.
3. Added fully automatic tests.
4. Added files to makefiles on Android, Linux, NaCL, Emscripten, to
Visual Studio project, to iOS and Mac projects, to marmelade proj.