Add metaprogram::get_root_vertex() function

Magic zeros are removed