Refactor dump_wikidata_classes script; add full dump