add a tree visualization for dictionaries for upto two categories (messy code; work in progress...)