demesne laws

added in the mod's demesne law changes (which were affecting some other
things we've already added), plus fixed some other bugs