Fixed a bug in "XmlElementHelper.ReadEnum" and wrote a test case for it