Allow an internal pod template reference or object

Extracted from #1600, starts #170
Wait, I'm confused-- why did you change this to break out of both loops? This will silently skip the test?