Commands don't target certain entities when using @e[team=<team>]
Steps to Reproduce:
add a player and another entity (like an arrow) to the same team.
use a @e[team=<team>] selector in a command, it will only target players on that team, not the other entities.
Note: I have not tried for all entities.
See MC-63391