Fix bugs with SUBMAP_POOL - it actually works great now!  Also, add a bunch of debug stuff (only seen if TESTING_MODE is on).