Decode a document node directly as a Vala T.
For example, Int32Codec.decode reads an integer node and returns int 42. Workers use this method for root values; collection codecs use it for their elements. The base decode_value calls it for properties.