convert enum PlaceText into enum class

and make enum AlignmentFlags ": char", turning this into an enum class
requires more work, as it is used for flags.
Also change enum class BeamMode from ": char" to ": signed char"