Added debug markers to directx module.
Fixed deserialization of empty xml text nodes.