Class flags fixes and additions

Various small fixes and additions to class flags interfaces.