improve io::Cursor read() performance for small sizeof(T)