Primitive encodings shouldn't use indefinite length constructed form. PR#2438 (partial). (Imported from upstream's 9223a31eb72dc46085ce97736c119c541973511e) Change-Id: I832d0bcda491c03c799b7b70184a1a3ec16b1592
Initial fork from f2d678e6e89b6508147086610e985d4e8416e867 (1.0.2 beta). (This change contains substantial changes from the original and effectively starts a new history.)