fix decoding of zero-length lists/dicts