If right hand of #foreach is not a list, then go on rather than throw an error.
Move .get() into .Identifier().
Remove comment about .getIdx().
Let the scope of #define to be local.
Update.