Lowercase tcpdi_parser
Fix handling of arrays and dicts

Some arrays' closing brackets and the closing of two nested dicts in a row
were not being handled properly, resulting in bad data and infinite loops.