encoding: In class TlvDecoder, add a wrapper for peekType.