Docs for class flags stuff, #1234 and #1276.