Edge-dependent pairwise potentials now work for double energy type.
General bug also fixed.