Insight into the solvation and isomerization of 3-halo-1-azaallylic anions from ab initio metadynamics calculations and NMR experiments.