Fix duplicating of alternate label input
Fix duplicating of alternate label input

Inputs were duplicated because gimsIf directive did not retain a
reference to them properly. By using a closure, instead of function,
we keep that reference and are allowed to properly destroy previous
nodes

Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims