switch to BFS for simple_type_info generation.