If we preserve the PartiallyDeferredValue's identifier, we'd end up with a result like:
{% set list = [] %}{% do list.append(bar['deferred']) %}{% print list %}
And we wouldn't know what bar refers to since it's a PartiallyDeferedValue, we'll never explicitly reconstruct it, so we have to try to resolve it to it's PyishSerializable value here.
If we preserve the PartiallyDeferredValue's identifier, we'd end up with a result like:
And we wouldn't know what
bar
refers to since it's a PartiallyDeferedValue, we'll never explicitly reconstruct it, so we have to try to resolve it to it's PyishSerializable value here.