Properly collect labels in put_map instructions in beam_alloc

Reported-by: Ulf Norell