Implemented CCDictionary::writeToFile with CCDataVisitor.

1. More strict code;
2. Extended supported types set.