io/stream: Import mtfcomp, packbits and test from AppEngine.

Add the UNKNOWN macro to utils/array.h to allow this.