WIP - Allow an internal pod template reference or object

Extracted from #1600, starts #170