Removed dependencies on Saxon in Result and Serializer, by adding more data model abstractions.