avutil/dict: Use size_t for appending strings