dict: const correctness for av_dict_get() and av_dict_copy()