erlydtl: allow lookup of var.key for a list [{<<key>>, ...}]

(cherry picked from commit 1324ce7919ecaafafb527410209305748ac050d2)