fix bytes map stores (needed proper bytebuffer init and resize); cleanup around copying