XML serializer

I realized that in my test case, I already have a function calling XML
content handler events. It allows me to test object deserialization.
- Fixed some bugs in i_stream and implementing classes
- Simplified IXmlContentHandler