pub fn opts2array<I, T>(nat: I, cap: usize) -> PrimitiveArray<T>where I: Iterator<Item = Option<T::Native>>, T: ArrowPrimitiveType,