Fixed #53 - Resolver doesn't see variables defined in foreach loop