Update for Haxe 3.1.3 compatibility

Reflecting changes to Bytes and BytesBuffer in the standard library, see http://haxe.org/download/version/3.1.3/ for release notes.