make flat dict array serializer handle arrays of primitives