CLN: move repeated cast out of loop
CLN: make guard more defensive
REF: add com._ndarray_to_native_types
REF: apply native type conv to ix, cols before write_csv