Changed equation_set to be simpler

Equation_set now is simply a dynarray of equations in disguise, since we
no longer store LH type_refs in equations.