libs/cbi: implement on_parse hook for maps