bugfix plus syntax warning

fix a bug in childdef production. make a redeclared identifier in an
enamldef a syntax warning.