On the DM side, I only apply 'enemy miss and hit a friend' only on a natural one. Even then, its randomly rolled for everyone within a reasonable arc - not just those in melee and not just allies.
On the player side, I'd play stupid if you haven't blown this possibility already. There must be a spy of [Insert campagin villian] stalking the group, sabotaging gear. Suggest that the other players check out all their equipment. Dump out your healing potions, because they might have been poisoned.
THEN do the alarm spell. Do it with a note to the DM and if questioned later, you didn't tell anyone because you thought the spy might have been watching.
When you catch the halfling, tell the other players that we have to do something about the spy. If he fesses up to messing with your strings because of friendly fire, laugh off the possibility. Explain to him that no true hero would sabotage an allies weapon because of a mistake.
Finally, if you can get the other characters to go along with it, have the halfling executed for treason. After he throws his books down, curses, and storms out of the room, make sure to follow him and tell him how cool you think it is when the DM lets one of the PCs 'betray' the group and play it out like that. Compliment him on his fine performance.
Okay, kidding about that last part. But going this way you can demonstrate how foolish he's being.
(and on the healing potions -- yes, I have had a DM be that rat-bastardish)