Fixes #394 - Identifiers inside of FOREACH get the wrong type