properly render fields of arrays of primitive types