Fix bug in TypedDataElement. Start writing tests to learn List functions.