Assuming your definition of “allies” is “non-player controlled units” – you already don’t get experience for those kills. It wouldn’t make sense for that to be a stipulation. The XP gain is working as intended (though whether or not it should work that way is another story).
You should leave your half-dozen suggestions, the devs have incorporated feedback to make things clearer before.