Fix "wholecfg" region selector

Summary: With the "wholecfg" region selector, a bunch of tests were failing
because of some recent changes to check the region.  The main issue
was that the arcs were being inserted before the involved blocks in
the region.  This diff fixes that and rewrites some things along the
way.

Reviewed By: @alexmalyshev

Differential Revision: D1564686