cmdutils: allow storing per-stream/chapter/.... options in a generic way