fix for new BytesReader and AsRefReader traits introduced in recent rust commit