inline get_datatype() so we can call it from multiple files
VectorRoundTrip tests