core/compr: make code length limiting in deflate actually work