AVOptions: split av_set_string3 into opt type-specific functions