Double shift in reading type/length in buffer_to_tlv.

When using extract_torv, the shifting is already performed by
pbuffer_safe_extract. Doing it twice is an error.