Fix improper value types used to instantiate a Template in AV::NullResolver
Fix improper value types used to instantiate a Template in AV::NullResolver

While trying to provide a reproducible test for #17008 I stumbled on
this one. Seems to be quite an old piece of code, but its definitely
useful in situations like the reproducible test cases like the one
above.

Envek/rails,lucasmazza/rails,betesh/rails,rails/rails,mechanicles/rails,shioyama/rails,bogdanvlviv/rails,BlakeWilliams/rails,koic/rails,assain/rails,assain/rails,illacceptanything/illacceptanything,mohitnatoo/rails,richseviora/rails,aditya-kapoor/rails,prathamesh-sonpatki/rails,sergey-alekseev/rails,kmayer/rails,tjschuck/rails,iainbeeston/rails,odedniv/rails,vipulnsward/rails,Spin42/rails,yawboakye/rails,mathieujobin/reduced-rails-for-travis,illacceptanything/illacceptanything,bradleypriest/rails,arunagw/rails,georgeclaghorn/rails,alecspopa/rails,yawboakye/rails,kddeisz/rails,gauravtiwari/rails,voray/rails,kddeisz/rails,vipulnsward/rails,schuetzm/rails,EmmaB/rails-1,georgeclaghorn/rails,odedniv/rails,iainbeeston/rails,Spin42/rails,ttanimichi/rails,eileencodes/rails,mohitnatoo/rails,ledestin/rails,richseviora/rails,Erol/rails,mtsmfm/railstest,kddeisz/rails,bradleypriest/rails,arjes/rails,yhirano55/rails,alecspopa/rails,maicher/rails,illacceptanything/illacceptanything,untidy-hair/rails,coreyward/rails,alecspopa/rails,marklocklear/rails,bolek/rails,yhirano55/rails,tijwelch/rails,untidy-hair/rails,sealocal/rails,illacceptanything/illacceptanything,esparta/rails,arunagw/rails,bolek/rails,ledestin/rails,printercu/rails,amoody2108/TechForJustice,sergey-alekseev/rails,kmcphillips/rails,tijwelch/rails,rails/rails,yalab/rails,Stellenticket/rails,koic/rails,EmmaB/rails-1,yhirano55/rails,untidy-hair/rails,illacceptanything/illacceptanything,jeremy/rails,sealocal/rails,tijwelch/rails,Envek/rails,Stellenticket/rails,gcourtemanche/rails,kaspth/rails,Envek/rails,mechanicles/rails,kirs/rails-1,prathamesh-sonpatki/rails,yasslab/railsguides.jp,elfassy/rails,rbhitchcock/rails,illacceptanything/illacceptanything,pvalena/rails,rails/rails,tjschuck/rails,stefanmb/rails,baerjam/rails,Stellenticket/rails,MSP-Greg/rails,yawboakye/rails,riseshia/railsguides.kr,kmcphillips/rails,rafaelfranca/omg-rails,rafaelfranca/omg-rails,bogdanvlviv/rails,Vasfed/rails,lucasmazza/rails,repinel/rails,kenta-s/rails,travisofthenorth/rails,vipulnsward/rails,gavingmiller/rails,samphilipd/rails,marklocklear/rails,yahonda/rails,notapatch/rails,palkan/rails,MSP-Greg/rails,prathamesh-sonpatki/rails,yawboakye/rails,rossta/rails,matrinox/rails,fabianoleittes/rails,iainbeeston/rails,MichaelSp/rails,deraru/rails,kddeisz/rails,lcreid/rails,esparta/rails,utilum/rails,mathieujobin/reduced-rails-for-travis,kirs/rails-1,Erol/rails,pvalena/rails,bogdanvlviv/rails,yhirano55/rails,starknx/rails,mijoharas/rails,yahonda/rails,palkan/rails,ttanimichi/rails,shioyama/rails,xlymian/rails,gavingmiller/rails,Stellenticket/rails,tgxworld/rails,joonyou/rails,mohitnatoo/rails,Erol/rails,rossta/rails,pschambacher/rails,joonyou/rails,vipulnsward/rails,betesh/rails,hanystudy/rails,arjes/rails,kamipo/rails,shioyama/rails,pvalena/rails,flanger001/rails,kenta-s/rails,hanystudy/rails,kaspth/rails,gcourtemanche/rails,tjschuck/rails,rafaelfranca/omg-rails,notapatch/rails,brchristian/rails,lcreid/rails,eileencodes/rails,kaspth/rails,Edouard-chin/rails,schuetzm/rails,pschambacher/rails,Vasfed/rails,Sen-Zhang/rails,aditya-kapoor/rails,matrinox/rails,maicher/rails,notapatch/rails,jeremy/rails,tgxworld/rails,fabianoleittes/rails,travisofthenorth/rails,ttanimichi/rails,BlakeWilliams/rails,riseshia/railsguides.kr,tgxworld/rails,yalab/rails,kirs/rails-1,stefanmb/rails,Erol/rails,printercu/rails,brchristian/rails,joonyou/rails,illacceptanything/illacceptanything,ledestin/rails,coreyward/rails,mtsmfm/rails,kamipo/rails,printercu/rails,illacceptanything/illacceptanything,aditya-kapoor/rails,mechanicles/rails,flanger001/rails,brchristian/rails,kmayer/rails,illacceptanything/illacceptanything,mtsmfm/rails,lucasmazza/rails,lcreid/rails,gauravtiwari/rails,yahonda/rails,yasslab/railsguides.jp,ngpestelos/rails,gauravtiwari/rails,gfvcastro/rails,betesh/rails,illacceptanything/illacceptanything,esparta/rails,flanger001/rails,palkan/rails,eileencodes/rails,elfassy/rails,starknx/rails,felipecvo/rails,vassilevsky/rails,bogdanvlviv/rails,kmcphillips/rails,baerjam/rails,esparta/rails,rossta/rails,hanystudy/rails,iainbeeston/rails,flanger001/rails,odedniv/rails,Edouard-chin/rails,arjes/rails,sealocal/rails,felipecvo/rails,georgeclaghorn/rails,utilum/rails,riseshia/railsguides.kr,illacceptanything/illacceptanything,kmayer/rails,mijoharas/rails,kachick/rails,mijoharas/rails,matrinox/rails,EmmaB/rails-1,baerjam/rails,pvalena/rails,vassilevsky/rails,gcourtemanche/rails,deraru/rails,shioyama/rails,Sen-Zhang/rails,illacceptanything/illacceptanything,BlakeWilliams/rails,gfvcastro/rails,felipecvo/rails,Envek/rails,rbhitchcock/rails,amoody2108/TechForJustice,repinel/rails,voray/rails,georgeclaghorn/rails,Edouard-chin/rails,MichaelSp/rails,repinel/rails,MSP-Greg/rails,prathamesh-sonpatki/rails,rails/rails,elfassy/rails,schuetzm/rails,starknx/rails,bolek/rails,jeremy/rails,kachick/rails,arunagw/rails,baerjam/rails,Spin42/rails,joonyou/rails,riseshia/railsguides.kr,mohitnatoo/rails,sergey-alekseev/rails,untidy-hair/rails,betesh/rails,MichaelSp/rails,schuetzm/rails,lcreid/rails,tjschuck/rails,gavingmiller/rails,samphilipd/rails,kachick/rails,travisofthenorth/rails,BlakeWilliams/rails,vassilevsky/rails,Sen-Zhang/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,illacceptanything/illacceptanything,Vasfed/rails,voray/rails,kenta-s/rails,mtsmfm/rails,fabianoleittes/rails,travisofthenorth/rails,yahonda/rails,koic/rails,notapatch/rails,deraru/rails,Vasfed/rails,mtsmfm/railstest,mathieujobin/reduced-rails-for-travis,rbhitchcock/rails,palkan/rails,MSP-Greg/rails,ngpestelos/rails,deraru/rails,gfvcastro/rails,arunagw/rails,tgxworld/rails,pschambacher/rails,mtsmfm/railstest,samphilipd/rails,yasslab/railsguides.jp,yasslab/railsguides.jp,bradleypriest/rails,assain/rails,utilum/rails,gfvcastro/rails,richseviora/rails,fabianoleittes/rails,coreyward/rails,stefanmb/rails,mechanicles/rails,printercu/rails,Edouard-chin/rails,ngpestelos/rails,eileencodes/rails,marklocklear/rails,aditya-kapoor/rails,kamipo/rails,xlymian/rails,assain/rails,yalab/rails,yalab/rails,jeremy/rails,repinel/rails,amoody2108/TechForJustice,kmcphillips/rails,xlymian/rails,utilum/rails,maicher/rails