autodetect object/array type in clean_types