improve printing in compiler test lib

add some missing instructions to the bytecode state printer, and add the
option to get the bc_state without stripping labels.