Refactor CLI
Fix case where `config.dataTypes` is not set