Properly count AVM1 instructions during branching