incorrect processing of variable-length quantity in http/2 hpack

closes #596