Fixes including disambiguate the root contexts of different functions when building postdom trees