fix quoting non-strings

Closes #13444
Merge pull request #13451 from dmathieu/quoting_non_strings

Fix typecasting array of integers