config: added missing 'type' handling + tests