* use items num instead of buffer len in file_tags_set()
- removed duplicate code in data_validate()
= fixed use of static string in test
* use data_items_walk() in data_validate() (fix TODO)
* use preallocated buffer in data_t struct
= minor fixes
+ added data_clear() calls to avoid valgrind warnings
= fixed realloc size in data_item_add()