Add a packet level version property.

It's only valid on document objects.

@shunter As I mentioned to you, Java translation is crashing for some reason.