Consider this input:
The selector foo.["bar"] returns the expected:
[
[ "bar" ],
[ "bar" ],
[ "bar" ]
]
If I slap on a positional (foo#$i.["bar"]) or context (foo@$e.["bar"]) variable, however, it returns this:
I don't think the addition of a positional or context variable should change the returned value in this case? You can try it out here: https://try.jsonata.org/zJVVISNd3