centralized raw data to array conversion in hx_array_fread_raw()