Properly collect labels in put_map instructions in beam_bool

Reported-by: Ulf Norell