RenderAsTextBehaviorFlags/RenderAsTextBehavior should just be an OptionSet<>
I did this via bug 197133.