Both the War Wizard and Archmage PRCs have this ability, the only difference between the two is the level you get it at.
Just for the sake of variety Mastery of Shapes should be swapped out with Mastery of Elements.
Not really doable in any sensible way, especially in any way that'd swap the VFX so it'd fit. Even ignoring that, it'd mean a full rewrite of every spell.