implemented table-jit, fixed many bugs in bv_types