encoding: Added TlvStructureDecoder and use it in ElementReader to dispatch on a BinaryXML or TLV packet.