adding model2dict and model2json capabilities to metatool