Allow an internal pod template reference or object

Extracted from #1600, starts #170
Switch back to continue, or also change the continue above, if you really have to use the labeled loop syntax.