Store profession in scenario object as a string instead of as a pointer.

I hope this fixes #8801, but I can't reproduce it in the first place, so I'm not sure.