Memory management fix

The static block should not be freed. Also, since header field’s
information are moved to the header block structure there is no need to
free them. That memory is actually freed when the header (and thus,
dynamic block) is freed.
Indexed header fields have to be added to the header table too
Fixes QA bench