Fixed github issue 12

Resource reference using a variable containing a list.