lavu/opt: introduce av_opt_serialize()