[TAP] Fix detection type problem on upload (=all types were considered as varchar)