encoding: In writeNestedTlv, added parameter omitZeroLength.