Update to rust 0.11, add necessary AsBytes implementations