move java implementation of haxe.io.Bytes and friends to a target-specific module