Fix to correctly instantiate local-byte-buffer distributions. Add testing for such.