Add duplicated symbol checking for YAParser.