If the opposing pokemon was using shadow tag or arena trap on you it would not matter and whirlwind/roar would force a switch. If you are the one that has shadow tag/arena trap whirlwind/roar would still force a switch because the opposing pokemon is not the one trying to switch. Either way, shadow tag or arena trap would still be the ability of either pokemon.