Convention-based type resolver for XML serializer

Resolves #93.