encoding (minor): In TlvEncoder.getOutput, explicitly state the array index for getting a slice.