Fix bug causing non-string arguments to crash during attempted templatization