Fixed bug with array-like names & custom templates

Elements with names as an arrays (i.e. car[name], car[make]) will now
work as expected with custom templates too; thanks to Dave for
suggesting;