We tested the the patches on the mentioned branch in tcl8.5, and everything seems to work fine.  We had to copy/paste manually some macro definitions on generic/tclInt.h and the function TclAppendBytesToByteArray which were introduced on tcl 8.6.