decode: bound the memory repeated elements and map entries materialize (#319)