Implemented CCDictionary::writeToFile with CCDataVisitor.

1. More strict code;
2. Extended supported types set.
3. Added fully automatic tests.