Compute length prior to constructing the L part of the TLV encoding.
Correct typo.
Simplify check - the tag has already been validated.
Allow creating ASN.1 objects from a value alone.
Add codecs for Integers and Strings.