Ok, I looked at these two perk, if the bug only comes from the fact that range modifier are based on PE*2, this fix should work: http://www.megaupload.com/?d=X5SME08B (however, it needs some testing).
About the pathfinder perk: the problem seems to come from the fact that values for terrains...