[fix][io] Use STL interface to deduce element type See merge request !3716 (cherry picked from commit 1f58f62f) c69cfc63 [fix][io] Use STL interface to deduce element type