keep earlydefs in the body of DesugaredClassDef
fixes failing test
clean up DesugaredClassDef code; add some tests