Fix folder to_dict a little so that it can work with proflib_visualizer, add tests that use outlib to output to file that can be used in proflib_visualizer