I don't know about the penalty for using ranged weapons on opponents closed with you own people, but I have been hit in the back by my Archer more than once. In 3E which I have heard is what IWD is supposed to mimic, a miss is just a miss. No chance of hitting party members. The user of the ranged weapon is supposed to have aimed wide to avoid hitting commrades.
Since you can not perform
Called Shots in any of the infinity engine games then the penalties for those don't apply either. Wouldn't it be nice to have an
Arcane Archer in your party.
------------------