Properly collect labels in put_map instructions in beam_jump

@UlfNorell