Handle arrays and don't quote nonstring primitives