Note that characters on their own, large monsters, war machines, etc, are classed as units as well, so spells that target units can be cast on these targets. Characters in units cannot be targeted separately unless otherwise noted.
A unit is considered to be the target of a spell if any of the models in the unit are affected by the spell.