adapt code of type edit part so that attributes and methods are added at
beginning of their lists