FIX: Export to_bytes::ToBytes
auto merge of #6217 : Sodel-the-Vociferous/rust/export-ToBytes, r=graydon