encoding: In TlvEncoder, added writeNestedTlv.