config: use multi-stage parsing of uci sections