It seems fairly feasible to fix the energy usage by just throwing more energy at it (and the Zumwalt demonstrates that capacity is relatively portable), but the wear on these things is going to be a massive cost even if they reduce the problem 10x from where it is now.
[1]: http://www.popularmechanics.com/military/weapons/a21174/navy...
it isn't explosives that costs money. A typical $3K "dumb" bomb is made "smart" by bolting-on $25K JDAM guidance kit. When Lockheed Martin is done with that "lump of feromagnetic material" you'll wish it was made of gold instead :)
But the projectile is not the most tricky part. The plan is to develop a single "hypervelocity projectile" which can be fired by both chemical and rail guns, so it seems likely that that part will work out.
The rail gun itself needs a lot more research and development to get to a usable form. See e.g. this rather pessimistic article[0]. Meanwhile, the Navy doesn't care enough about the Zuwalt guns to even buy ammunition for them. How much will they spend on building a better gun?
[0] http://www.defenseone.com/technology/2016/06/can-navys-elect...
But since the entire advantage of artillery is having the ability to put rounds on targets more cheaply than other methods, once you're paying $800k for a round you may as well use aircraft or missiles.
The railgun will probably get deployed just because it gives them capabilities far beyond AGS. It will have almost double the range and, in theory anyway, could be used against land, surface, and air targets (including ballistic missiles).
So a rail gun on the Zumwalt would basically do the same thing as the AGS. It would maybe have longer range, depending on how many megajoules they can make the gun output, this is still an open problem. And the magazine would have space for twice as many rounds, since they don't need to store the propellant. Given that the Navy apparently just decided that they don't even want the AGS, I don't think they care at all about the capabilities they'd get by installing railguns on the Zumwalts.
They may still install it as basically a pure research project, but if money is tight...
OTOH, only the third one is getting the railgun if it happens at all.