The reliability of electric vehicles and plug-in hybrids has dramatically improved, narrowing a gap with gas-powered automobiles.