fix list representation's edge ctor
a big bunch of fixes and tests