fix XmlElement Wrapper processing(add it for simple type, and for elements), improve some diagnostic