Minecraft wiki entry for Building_a_rollercoaster, associated text: [type=!player,type=!minecart,name=!SPARENAME]will ignore the minimum needed entities as well as entities with the name SPARENAME.
You can expand targetors to other entities with ,type=!ENTITY