fix #1914: CLIFormatter: check also for existence of 'type'